package com.wanxi.util;

import java.io.File;
import java.io.IOException;

public class Tool {
    private Tool(){}
    /**
     * 根据地址和文件  名称创建文件
     *
     * @param path
     * @param fileName
     */
    public static File mkFile(String path, String fileName) {
        File dir = new File(path);
        dir.mkdirs();
        File file = new File(dir, fileName);
        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return file;
    }
}
